package com.zb.spring5.ioc.setter;

import com.zb.spring5.ioc.entity.Dependency;

public class SetterInjection {

    private Dependency dependency;

    /**
     * IOC注入中的set注入满足变化的注入情况
     * @param dependency
     */
    public void setDependency(Dependency dependency) {
        this.dependency = dependency;
    }

    @Override
    public String toString() {
        return dependency.toString();
    }
}
